Skip to main content

ModifyMachineConfig

Description

modify the baseline check policy application configuration of host assets, that is, set whether the specified baseline check policy is applied to the specified host assets.

Request Method

POST

Request Path

/apsara/route/aegis/ModifyMachineConfig

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
TypeBODYstringNoNo sample value for this parameter.type, the system specifies the parameters. Value: hc_switch, indicating the baseline check policy switch.
TargetBODYstringNoNo sample value for this parameter.Specify the host asset and describe it in JSON format. For details, see the request example.
regionIdBODYstringYesNo sample value for this parameter.region id
ConfigBODYstringNoNo sample value for this parameter.policy configuration information. Enter the baseline check policy ID in JSON format, for example, {"strategyId":15161}.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstringno demo valuerequest ID.

Example

Successful Response example

{
"RequestId":"no demo value"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}